package com.ss.android.article.base.feature.user.location.model;

import android.os.Parcel;
import android.os.Parcelable;
import android.support.design.a;

public class LocationResult implements Parcelable {
    public static final Parcelable.Creator CREATOR = new Creator<LocationResult>(){
        public final LocationResult createFromParcel(Parcel arg2) {
            return new LocationResult(arg2);
        }

        public final LocationResult[] newArray(int arg2) {
            return new LocationResult[arg2];
        }
    };
    public String area;
    public String province;

    public LocationResult() {

    }

    protected LocationResult(Parcel arg2) {
        this.province = arg2.readString();
        this.area = arg2.readString();
    }

    public int describeContents() {
        return 0;
    }

    public String toString() {
        String v0;
        if(a.isTextEmpty(this.province)) {
            v0 = "";
        }
        else if(a.isTextEmpty(this.area)) {
            v0 = this.province;
        }
        else {
            v0 = this.province + this.area;
        }

        return v0;
    }

    public void writeToParcel(Parcel arg2, int arg3) {
        arg2.writeString(this.province);
        arg2.writeString(this.area);
    }
}

